﻿using Volo.Abp.Application.Services;
using Volo.Abp;
using AbpVnext_Module.Dto;
using System.Threading.Tasks;
using System.Collections.Generic;

namespace AbpVnext_Module.Iservice
{
    public interface IPermissionService : ICrudAppService<PermissionDto, // 结果出参 
                                               PermissionPageResultDto,  //获取列表返回参数dto
                                               int, //主键
                                               PermissionPageDto, //查询入参
                                               PermissionCreateDto, //创建入参dto
                                               PermissionUpdateDto>  //更新入参dto
                                               //, IRemoteService  //自动Api
    {
        Task<string> CreatePerMange();

        Task<string> GrantPermissonForuser(string userid, string permisionName);

        Task<string> GrantPermissonForRole(string RoleName, List<string> permisionName);

        Task<string> GrantPermissonForEmail(string RoleName, List<string> permisionName);
    }
}
